package com.sgx.learning.luban.homework.attributes;

import com.sgx.learning.luban.homework.basictype.U2;
import com.sgx.learning.luban.homework.basictype.U4;
import com.sgx.learning.luban.homework.constantpool.ConstantPoolInfo;
import lombok.Data;

import java.io.IOException;
import java.io.InputStream;

@Data
public abstract class AttributeInfo {
    private short attributeNameIndex;
    private int attributeLength;

    public abstract void read(InputStream is, ConstantPoolInfo[] constantPoolInfos) throws IOException;
}
